package cn.lxh.org.domain;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.lxh.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 
 * </p>
 *
 * @author lxh
 * @since 2022-06-12
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Shop extends BaseDomain{

    private static final long serialVersionUID = 1L;
    @Excel(name = "店铺名字" ,orderNum = "1", width = 30, isImportField = "true_st")
    private String name;
    @Excel(name = "联系电话" ,orderNum = "2", width = 30, isImportField = "true_st")
    private String tel;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GTM+8")
    @Excel(name = "创建时间", orderNum = "3", width = 30, isImportField = "true_st")
    private Date registerTime=new Date();
    /**
     * 待审核 审核通过 驳回
     */
    @Excel(name = "状态" ,orderNum = "4", width = 30, isImportField = "true_st")
    private Integer state = 0;
    @Excel(name = "地址" ,orderNum = "5", width = 30, isImportField = "true_st")
    private String address;
    @Excel(name = "店铺图片" ,orderNum = "6", width = 30, isImportField = "true_st")
    private String logo;
    @Excel(name = "管理员ID" ,orderNum = "7", width = 30, isImportField = "true_st")
    private Long adminId;


    @Excel(name = "管理员" ,orderNum = "8", width = 30, isImportField = "true_st")
    private String username;
    private  Employee admin;

    //当前店铺的审核日志
    private List<ShopAuditLog> auditLogs = new ArrayList<>();



}
